package Logging;

public class Message {
	public static enum MessageImportance{
		DEBUG(4),
		INFO(5),
		WARNING(3),
		ERROR(2) ,
		CRITICAL (1);
		private final int priority;  
		MessageImportance(int i){
			priority=i;
		}

		
		public int getPriority(){
			return priority;
		}
	}
	
	private MessageImportance messageImportance;
	private String applicationName;
	private String text;
	
	
	public Message(MessageImportance messageImportance, String applicationName, String text){
		this.messageImportance=messageImportance;
		this.applicationName=applicationName;
		this.text=text;
	}
	
	
	public MessageImportance getMessageImportance() {
		return messageImportance;
	}

	public String getApplicationName() {
		return applicationName;
	}

	public String getText() {
		return text;
	}
}
